package com.donggua.aichebao.commonui.info;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.donggua.aichebao.commonui.R;

/**
 * Created by Administrator on 2017-08-05.
 */
//com.donggua.aichebao.commonui.info.InfoItemLayout
public class InfoItemLayout extends RelativeLayout{
    InfoItemLayoutOperator inInfoItemLayoutOperator;
    public InfoItemLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        // TODO Auto-generated constructor stub
        inInfoItemLayoutOperator = new InfoItemLayoutOperator(context,attrs,this);
    }

    public void setRightArray(Drawable drawable) {
        inInfoItemLayoutOperator.setRightArray(drawable);
    }

    public String getRightText(){
        String text = null;
        text = inInfoItemLayoutOperator.getRightText();
        return text == null ? "": text;
    }

    public void setLefText(String text){
        inInfoItemLayoutOperator.setLeftText(text);
    }
}
